#define _CRT_SECURE_NO_WARNINGS

#pragma once
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <stdbool.h>

typedef int TreeData;
typedef struct TreeNode {
	TreeData data;
	struct TreeNode* left;
	struct TreeNode* right;
}TreeNode;

void bstInsert(TreeNode** cur, int val);

void preOrder(TreeNode* root);
void inOrder(TreeNode* root);
void posOrder(TreeNode* root);